package diplomovka.graphCreator.modelParts;

import java.util.ArrayList;
import java.util.List;

public class MField {

	private Class type;
	private String name;
	private List<MAnnotation> annotations = new ArrayList<MAnnotation>();
	private int modifiers;
	private String maximalMultiplicity;
	private String minimalMultiplicity;
	private String inverseName;
	private String inverseMaximalMultiplicity;
	private String inverseMinimalMultiplicity;
	private boolean staticField;
	private boolean notNull;
	private boolean identifier;
	private boolean aggregation;
	private boolean composition;
	private String cascade; 
	
	public Class getType() {
		return type;
	}
	public void setType(Class type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<MAnnotation> getAnnotations() {
		return annotations;
	}
	public void addAnnotation(MAnnotation annotation) {
		annotations.add(annotation);
	}
	public int getModifiers() {
		return modifiers;
	}
	public void setModifiers(int modifiers) {
		this.modifiers = modifiers;
	}
	public String getMaximalMultiplicity() {
		return maximalMultiplicity;
	}
	public void setMaximalMultiplicity(String multiplicity) {
		this.maximalMultiplicity = multiplicity;
	}
	public String getMinimalMultiplicity() {
		return minimalMultiplicity;
	}
	public void setMinimalMultiplicity(String minimalMultiplicity) {
		this.minimalMultiplicity = minimalMultiplicity;
	}
	public String getInverseName() {
		return inverseName;
	}
	public void setInverseName(String inverseName) {
		this.inverseName = inverseName;
	}
	public String getInverseMaximalMultiplicity() {
		return inverseMaximalMultiplicity;
	}
	public void setInverseMaximalMultiplicity(String inverseMaximalMultiplicity) {
		this.inverseMaximalMultiplicity = inverseMaximalMultiplicity;
	}
	public String getInverseMinimalMultiplicity() {
		return inverseMinimalMultiplicity;
	}
	public void setInverseMinimalMultiplicity(String inverseMinimalMultiplicity) {
		this.inverseMinimalMultiplicity = inverseMinimalMultiplicity;
	}
	public boolean isStaticField() {
		return staticField;
	}
	public void setStaticField(boolean staticField) {
		this.staticField = staticField;
	}
	public boolean isNotNull() {
		return notNull;
	}
	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}
	public boolean isIdentifier() {
		return identifier;
	}
	public void setIdentifier(boolean identifier) {
		this.identifier = identifier;
	}
	public boolean isAggregation() {
		return aggregation;
	}
	public void setAggregation(boolean aggregation) {
		this.aggregation = aggregation;
	}
	public boolean isComposition() {
		return composition;
	}
	public void setComposition(boolean composition) {
		this.composition = composition;
	}
	public String getCascade() {
		return cascade;
	}
	public void setCascade(String cascade) {
		this.cascade = cascade;
	}
	
}
